package com.twu.biblioteca.util;

public class LoginMenu implements IMenuEntry{
    public static final String SUCCESS = "Successful Login";
    public static final String FAILURE = "UnSuccessful Login";

    @Override
    public String handle(String args) {
        String partsOfArgs[] = args.split(" ");
        if(UserAuthenticator.validate(partsOfArgs[0],partsOfArgs[1])){
            return SUCCESS;
        }
        return FAILURE;
    }
}
